<template>
<router-view/>
</template>

<script>
export default {
  name: 'App',
  mounted () {
    if (this._isMobile()) {
      this.$router.replace('/darksoulphone')
    } else {
      this.$router.replace('/darkdsoul')
    }
  },
  data () {
    return {
    }
  },
  methods: {
    _isMobile () {
      let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
      return flag
    }
  }
}
</script>

<style>
  body{
    margin:0;
  }
  body .el-table th.gutter {
  display: table-cell !important;
}
body .el-table colgroup.gutter {
  display: table-cell !important;
}
</style>
